package com.xkdx.caipiao.presistence.flowrechanrge;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class FlowreChanrgeAction extends AbsAction {
	String uid,logintoken,devicetype,proid,mobileno,signcode;

	public FlowreChanrgeAction(String uid,String logintoken,String devicetype,String proid,String mobileno,String signcode ) {
		this.uid = uid;
		this.logintoken = logintoken;
		this.devicetype = devicetype;
		this.proid = proid;
		this.mobileno = mobileno;
		this.signcode = signcode;
	}

	@Override
	public void constructRequest() {

		HashMap<String, String> map = new HashMap<String, String>();
		map.put("uid", uid);
		map.put("logintoken", logintoken);
		map.put("devicetype", devicetype);
		map.put("proid", proid);
		map.put("mobileno", mobileno);
		
		String json = constructJson(map);
		Parameter parameter = new Parameter("FlowRecharge", "RechargeRequest", json);
		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);
	}
}
